import * as actionTypes from '../constants/news';

const initialState = {
  banner: [],
  newsNoticeList: {}
};

export default (state = initialState, action) => {

  switch (action.type) {
    case actionTypes.GET_BANNER_LIST:
      return {...state, banner: action.data};

    case actionTypes.GET_NEWS_NOTICE_LIST:
      return {...state, newsNoticeList: action.data};

    default:
      return state;
  }

}